<template>
  <div class="index">
    <!-- 跑马灯  -->
    <div>
      <el-carousel type="card" :interval="4000" height="300px">
        <el-carousel-item v-for="item in imgList" :key="item.id">
          <img :src="item.idView" height="300px" width="100%">
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>


<!--  -->
  <el-card style="max-width: 480px">
    <template #header>Yummy hamburger</template>
    <img
        src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
        style="width: 100%"
    />
  </el-card>

</template>

<script>
export default {
  name: 'index',
  data(){
    return {
      imgList: [
        {id:0,idView:'https://t7.baidu.com/it/u=4141604674,3317329080&fm=193&f=GIF'},
        {id:1,idView:'https://t7.baidu.com/it/u=860330160,4117395242&fm=193&f=GIF'},
        {id:2,idView:'https://t7.baidu.com/it/u=4141604674,3317329080&fm=193&f=GIF'},
        {id:3,idView:'https://t7.baidu.com/it/u=311539806,3790856412&fm=193&f=GIF'}
      ]
    };
  },
  methods: {
  }
}
</script>
<style>
/*.index{*/
/*  background: #c8cfd8;*/
/*  width: 80%;*/
/*  text-align: center;*/
/*  margin-left: 142px;*/
/*  width: 80.6%;*/

/*}*/
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}



</style>
